setSelected

abstract fun setSelected(block: DesignBlock, selected: Boolean)

Update the selection state of a block. Fails for invalid blocks. Note: Previously selected blocks remain selected. A page slice and its page are never selected together: selecting one deselects the other. Required scope: "editor/select"

Parameters

block

the block to query.

selected

whether or not the block should be selected.